﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlaceOrder_Client.Helper
{
    public class LilyMessageConverterHelper
    {
        public static string ConvertToRealMessage(string message)
        {
            try
            {
                
                switch (message)
                {
                    case "qiangping_inform":
                        return "强平确认";
                    case "chat_message":
                        return "聊天信息";
                    case "accept_bond_0":
                        return "接收买入单";
                    case "accept_bond_1":
                        return "接收卖出单";

                    case "deal_bond_0":
                        return "中介处理买入单";
                    case "deal_bond_1":
                        return "中介处理卖出单";

                    case "request_cancel_bond_0":
                        return "请求撤销买入单";
                    case "request_cancel_bond_1":
                        return "请求撤销卖出单";
                    case "confirm_cancel_bond_0":
                        return "确认撤销买入单";
                    case "confirm_cancel_bond_1":
                        return "确认撤销卖出单";

                    case "deny_cancel_bond_0":
                        return "中介拒绝撤销买入单";
                    case "deny_cancel_bond_1":
                        return "中介拒绝撤销卖出单";

                    case "xiugaichangedeny_bond_0":
                        return "中介拒绝改价 买单";
                    case "xiugaichangedeny_bond_1":
                        return "中介拒绝改价 卖单";

                    case "xunjiachangerequest_bond_0":
                        return "中介处理改价 买单";
                    case "xunjiachangerequest_bond_1":
                        return "中介处理改价 卖单";

                    case "usertradechange_bond_0":
                        return "买单状态变化";
                    case "usertradechange_bond_1":
                        return "卖单状态变化";


                    case "xiugaichangeconfirm_bond_0":
                        return "改价状态变化-买单";
                    case "xiugaichangeconfirm_bond_1":
                        return "改价状态变化-卖单";
                        


                    default:
                        return "未知" + message;
                }
            }
            catch
            {
                return null;
            }
        }
    }
}
